import request from '@/utils/request.js'

//发布公告
export const announceService=(data)=>{
  return request.post('/announce',data)
}

//新增首页内容
export const saveTextService=(data)=>{
  return request.post('/homepage/saveText',data)
}

//修改首页内容
export const updateTextService=(data)=>{
  return request.post('/homepage/updateText',data)
}

//获取首页内容
export const getTextService= ()=>{
  return request.get('/homepage/getText')
}
